#pragma once

#include <Windows.h>
#include "stdafx.h"

class Thread_Mutex
{
public:
	Thread_Mutex();	
	void acquire();
	void release();
	~Thread_Mutex(void);
private:
	HANDLE mMutex;
};

class Thread_Mutex_Guard
{
public:
	Thread_Mutex_Guard(Thread_Mutex &m);
	~Thread_Mutex_Guard();
private:
	Thread_Mutex& mutex;
	bool _owner;
};